package com.project.service.impl.backend;

import com.project.common.util.QueryUtils;
import com.project.dao.ICustomerDao;
import com.project.dao.bean.Customer;
import com.project.service.backend.CustomerService;

public class CustomerServiceImpl implements CustomerService {
	private ICustomerDao iCustomerDao;
	//分页显示方法
	public QueryUtils customerlist(QueryUtils queryUtils) {
		queryUtils=iCustomerDao.customerlist(queryUtils);
		return queryUtils;
	}
	

	//数据删除方法
	public void delete(long id) {
		iCustomerDao.delete(id);
		
	}




	//findbyid方法
	public Customer findbyid(long id) {
		Customer customer=new Customer();
		customer=iCustomerDao.findbyid(id);
		return customer;
	}




	//更新方法
	public int update(Customer customer) {
		int i=iCustomerDao.update(customer);
		return i;
	}
	
	
	
	public ICustomerDao getiCustomerDao() {
		return iCustomerDao;
	}
	public void setiCustomerDao(ICustomerDao iCustomerDao) {
		this.iCustomerDao = iCustomerDao;
	}




	
}
